﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Help
{
    public static class GetSysKey
    {
        /// <summary>
        /// 拿KEY值
        /// </summary>
        /// <param name="key">ComOpen,IntOpenPT,IntOpenSH,IntShOpen,IntKey,FlowMonKey,FlowIntKey,FlowPayKey,WaltKey,MerKey,TopMer,DishesTypeKey,DishesKey,FormKey,PicKey,SheKey</param>
        /// <returns></returns>
        public static string GetKey(string key)
        {
            ComdSqlFactory cmd = new ComdSqlFactory();
            return cmd.firstrow("UPDATE Order_Key_T SET " + key + " = " + key + "+1 OUTPUT Inserted." + key + ""); ;
        }
    }
}
